package Zhouliu;
public class Work1 {
   public int niu1;
   public int day;
   public int niu2;
   public int day1;
   public int type;
   public int niusum;

    public int getNiu1() {
        return niu1;
    }

    public void setNiu1(int niu1) {
        this.niu1 = niu1;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public int getNiu2() {
        return niu2;
    }

    public void setNiu2(int niu2) {
        this.niu2 = niu2;
    }

    public int getDay1() {
        return day1;
    }

    public void setDay1(int day1) {
        this.day1 = day1;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getNiusum() {
        return niusum;
    }

    public void setNiusum(int niusum) {
        this.niusum = niusum;
    }
    public void print() {
      int sum=type+niusum;
      System.out.println("可以供"+sum+"头吃一天");
    }
}

